/* 算法实现模板 */
import AlgorithmBase from "./AlgorithmBase";
import DecisionTree2D from "../../visual/DecisionTree2D";

class BFGS extends AlgorithmBase{
  constructor(){
    super('BFGS');
  }

  init(){
    const tree = new DecisionTree2D(500, 500);
    tree.addNode(200, 100, '有房');
    tree.addBlock(150, 200, '[-1]');
    tree.addBlock(250, 200, '[1]');
    tree.addLine(200, 100, 150, 200);
    tree.addLine(200,100,250,200);

    this.domModel.appendChild(tree.domElement);
    tree.update();
  }
}


export default BFGS;